package com.haredot.controller;

import com.haredot.service.IndexService;
import com.haredot.vo.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class IndexController {

    @Resource
    private IndexService indexService ;

    @GetMapping("/rss/index")
    public R<?> index() {
        return indexService.queryIndexData();
    }

    @GetMapping("/rss/advert")
    public R<?> advert() {

        return indexService.queryAdvert();
    }
}
